package com.whw.springboot.walk.utils;

import cn.hutool.http.HttpRequest;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class StudentConfirmUtil {

    /**
     * @Author: Xcq
     * @Description: 学籍认证
     */

    public static String StudentConfirm(String code){
        Map data = new HashMap<>();
        data.put("code",code);

        String result = HttpRequest.post("https://api.jshdz.cn/xxwyz/")
                .form(data)
                .execute()
                .body();
        return result;
    }
}
